<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>auth</title>
</head>
<body>
<h3>欢迎 <span style="color: green;">{{ user }}</span> 来到 {{ action }} 页面</h3>
{% if user == "游客" %}
    <a href="{% url 'login' %}">点我登录</a>
{% else %}
    <a href="{% url 'logout' %}">点我注销登录</a>
{% endif %}
</body>
</html>